import request from '@/utils/request'

// 查询编码规则明细列表
export function listCodingRuleDetails(query) {
  return request({
    url: '/basic/codingRuleDetails/list',
    method: 'get',
    params: query
  })
}

// 查询编码规则明细详细
export function getCodingRuleDetails(codingRuleLineId) {
  return request({
    url: '/basic/codingRuleDetails/' + codingRuleLineId,
    method: 'get'
  })
}

// 新增编码规则明细
export function addCodingRuleDetails(data) {
  return request({
    url: '/basic/codingRuleDetails',
    method: 'post',
    data: data
  })
}

// 修改编码规则明细
export function updateCodingRuleDetails(data) {
  return request({
    url: '/basic/codingRuleDetails',
    method: 'put',
    data: data
  })
}

// 删除编码规则明细
export function delCodingRuleDetails(codingRuleLineId) {
  return request({
    url: '/basic/codingRuleDetails/' + codingRuleLineId,
    method: 'delete'
  })
}
